import request from '@/utils/request'
/*保存病例*/
export function saveCase(query) {
  return request({
    url: '/kbjz/case/addCase',
    method: 'post',
    params:query
  })
}


/**
 * 查询患者病例
 */
export function selectCaseByPatientId(query) {
  return request({
    url: '/kbjz/case/selectCaseByPatientId/'+query,
    method: 'get',
  })
}

/**
 * 查询患者病例
 */
export function updateRegisterStatus(query) {
  return request({
    url: '/kbjz/case/selectCaseByPatientId',
    method: 'put',
    params: query,
  })
}

/**
 * 根据关键字 查询药品信息
 * @param query 关键字
 */
export function selectDrugByKeyWord(query) {
  return request({
    url: '/kbjz/medicinelist/selectDrugByKeyWord/'+query,
    method: 'get',
  })
}

export function selectAllOrByConditions(query) {
  return request({
    url: '/sys/checkitem/selectAllOrByConditions/'+query,
    method: 'get',
  })
}
